package com.cloudsigns.factorymanager2.produce.fragment.produce_team;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.cloudsigns.factorymanager2.R;
import com.cloudsigns.factorymanager2.engineering.customview.ListViewForScrollView;
import com.cloudsigns.factorymanager2.produce.activity.produce_team.ProduceTeamEditHandoverInformationActivity;

public class ProduceTeamOrderWorkpartHandoverFragment extends Fragment implements View.OnClickListener{
    private ImageView img_edit_information;
    private ListViewForScrollView lv_submit,lv_receive;

    // 提交item点击跳转 ProduceTeamSubmitInformationActivity
    // 接收item点击跳转 ProduceTeamReceiveHandoverOrderActivity


    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment_produce_team_workpart_handover,null);
        img_edit_information=view.findViewById(R.id.img_edit_information);
        lv_submit=view.findViewById(R.id.lv_submit);
        lv_receive=view.findViewById(R.id.lv_receive);

        img_edit_information.setOnClickListener(this);
        return view;
    }

    @Override
    public void onClick(View view) {
        Intent intent;
        switch (view.getId()){
            // 编辑提交信息
            case R.id.img_edit_information:
                intent=new Intent(getActivity(),ProduceTeamEditHandoverInformationActivity.class);
                startActivity(intent);
                break;
        }
    }
}
